/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 50718
 Source Host           : localhost
 Source Database       : dev

 Target Server Type    : MySQL
 Target Server Version : 50718
 File Encoding         : utf-8

 Date: 07/28/2017 21:22:08 PM
*/

SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
--  Table structure for `seckill`
-- ----------------------------
DROP TABLE IF EXISTS `seckill`;
CREATE TABLE `seckill` (
  `seckill_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '商品库存表',
  `name` varchar(120) NOT NULL COMMENT '商品名称',
  `number` int(11) NOT NULL COMMENT '库存数量',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `start_time` timestamp NOT NULL DEFAULT '2016-01-01 00:00:00' COMMENT '秒杀开始时间',
  `end_time` timestamp NOT NULL DEFAULT '2016-02-02 00:00:00' COMMENT '秒杀结束时间',
  PRIMARY KEY (`seckill_id`),
  KEY `idx_start_time` (`start_time`),
  KEY `idx_end_time` (`end_time`),
  KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB AUTO_INCREMENT=1006 DEFAULT CHARSET=utf8 COMMENT='秒杀库存表';

-- ----------------------------
--  Records of `seckill`
-- ----------------------------
BEGIN;
INSERT INTO `seckill` VALUES ('1', '3555', '99', '2017-07-21 18:36:40', '2017-07-19 18:36:05', '2017-07-21 18:36:32'), ('1000', 'xiaomi4', '499', '2017-07-21 18:40:34', '2017-07-31 00:00:00', '2017-07-29 00:00:00'), ('1001', '3555秒杀iphone7', '99', '2017-07-21 18:42:06', '2017-07-20 00:00:00', '2018-07-26 00:00:00'), ('1002', '1000秒杀小米6', '499', '2017-07-21 18:42:06', '2017-07-20 00:00:00', '2017-07-21 00:00:00'), ('1003', '500华为', '999', '2017-07-21 18:42:06', '2017-07-20 00:00:00', '2017-07-21 00:00:00'), ('1004', '100魅族', '1999', '2017-07-21 18:42:06', '2017-07-20 00:00:00', '2017-07-31 00:00:00'), ('1005', '300垃圾', '4994', '2017-07-22 17:31:03', '2017-07-22 17:31:07', '2017-09-08 17:31:14');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
